#include "BPlusTree.h"
#include <iostream>

using namespace std;

void test()
{
	BPlusTree<int, int> *p = new BPlusTree<int, int>();
	cout << p->getSize() << endl;
	p->insert(2, NULL);
	//cout << "Tree size:" << p->getSize() << endl;
	//p->getRoot()->printKeysInNode();
	p->insert(1, NULL);
	//cout << "Tree size:" << p->getSize() << endl;
	//p->getRoot()->printKeysInNode();

	p->insert(3, NULL);
	//cout << "Tree size:" << p->getSize() << endl;
	//p->getRoot()->printKeysInNode();

	cout << "\n\n\n";

	//p->insert(1, NULL);
	//p->insert(5, NULL);
	//p->insert(4, NULL);

	cout << "The root" << endl;
	p->getRoot()->printKeysInNode();

	cout << "The first pointer of root" << endl;
	p->getRoot()->getPointer(0)->printKeysInNode();

	cout << "The second pointer of root" << endl;
	p->getRoot()->getPointer(1)->printKeysInNode();
}

void main()
{
	cout << "begin" << endl;
	test();
	return;
}